//
//  CellFactory.m
//  CellFactoryModel
//
//  Created by 向祖华 on 16/4/22.
//  Copyright © 2016年 向祖华. All rights reserved.
//

#import "CellFactory.h"
#import "RootTableViewCell.h"

@implementation CellFactory

+(id)creatCellWithClassName:(NSString*)className dataModel:(DataModel*)model{
    Class ref = NSClassFromString(className);
    RootTableViewCell*cell = [[ref alloc] initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:className];
    return [cell initWithDataModel:model];
    
}

@end
